package com.example.bes017.websocket.demo.service;

import com.example.bes017.websocket.demo.DTO.UserReqDto;

import javax.jws.WebParam;
import javax.jws.WebService;

@WebService
public interface UserService {


    /**
     * 添加用户
     * @param email
     * @param username
     * @param password
     * @return
     */
    int addUser(@WebParam(name = "email") String email, @WebParam(name = "username") String username, @WebParam(name = "password") String password);


    /**
     * 更新用户信息
     * @param userReqDto
     * @return
     */
    int updateUser(@WebParam(name="user") UserReqDto userReqDto);
}